import { request } from '@/api/REQ'

/* 获取输入表格标题与行 */
export function tables(solution_id: number,PT: number) {
	return request({
		url: `/dict/table-info/IN/${solution_id}/${PT}`,
		method: 'get',
	})
}
/* 获取输出表格标题与行 */
export function tablesOut(PT: number) {
	return request({
		url: `/dict/table-info/OUT${PT}`,
		method: 'get',
	})
}
/* 获取输入输出表格标题与行 */
export function tablesInAndOut(PT: number) {
	return request({
		url: `/dict/table-info/ALL${PT}`,
		method: 'get',
	})
}
/* 获取指标 */
export function indicators(solution_id: number, PT: number) {
	return request({
		url: `/dict/indicator-info/${solution_id}/${PT}`,
		method: 'get',
	})
}
/* 表格包含的指标 */
export function tableIndicator(table_id: number, PT: number) {
	return request({
		url: `/dict/table-indicator/${table_id}/${PT}`,
		method: 'get',
	})
}

export default {
	tables,
	tablesOut,
	tablesInAndOut,
	indicators,
	tableIndicator,
}
